export const getCarIcon = (car) => {
  var icon = ''
  switch (car.workstatus) {
    case 0:
      icon = 'static/amap/car_1.png'
      break
    case 1:
      icon = 'static/amap/car_2.png'
      break
    case 2:
      icon = 'static/amap/car_3.png'
      break
  }
  return new AMap.Icon({
    image: icon, // Icon的图像
    imageSize: new AMap.Size(30, 32) // 根据所设置的大小拉伸或压缩图片
  })
}

export const getOrderIcon = (order) => {
  return new AMap.Icon({
    image: 'static/amap/orderIcon.png', // Icon的图像
    imageSize: new AMap.Size(30, 32) // 根据所设置的大小拉伸或压缩图片
  })
}
